@import "~@/styles/index.less";

// 主框架
.container {
  background: url("../../assets/image/sourceImg/bg-3.png") no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;

  .headerWrap {
    color: #d9edf7;
    font-size: 28px;
    background: url("../../assets/image/sourceImg/title.png") no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    height: 250px;
    padding: 0 10px;
    .flex-center();
    justify-content: center;
  }

  .mainContainer {
    padding: 0 10px;
    height: 100%;
  }
}

// 左侧容器
.leftWrap {
  width: 350px !important;
  height: 100%;
  .lefttopBox {
    width: 100%;
    height: 55%;
  }
  .leftbotBox {
    margin-top: 10px;
    width: 100%;
    height: calc(45% - 12px);
    // 巡检车辆
    // 导航样式
    .carNav {
      height: 40px;
      display: flex;
      position: fixed;
      width: 348px;
      margin: 0;
      background: #0c1c31;
      box-sizing: border-box;
      > li {
        flex-grow: 1;
        border-top: solid 1px @themeColor;
        border-bottom: solid 1px @themeColor;
        text-align: center;
        line-height: 38px;
        color: #ccc;
        cursor: pointer;
        &:nth-child(2),
        &:nth-child(3) {
          border-left: solid 1px @themeColor;
          border-right: solid 1px @themeColor;
        }
        &.active {
          background: rgb(21, 46, 83);
          color: #ffffff;
        }
      }
    }
    .minNav {
      width: 253px !important;
    }
    .seize40 {
      height: 40px;
    }
  }
}

// 右侧容器
.rightWrap {
  width: 350px !important;
  height: 100%;
  .righttopBox {
    width: 100%;
    height: 45%;
  }
  .rightbotBox {
    margin-top: 10px;
    width: 100%;
    height: calc(55% - 12px);
  }
}

// 中间模块样式
.headStatistic {
  height: 100px;
  padding: 0 10px;
  border: none;
  box-shadow: none;
  // 顶部综合统计
  .headstaWrap {
    .flex-center();
    justify-content: space-around;
    .staItem {
      display: flex;
      width: 19%;
      height: 85px;
      margin-top: 7px;
      .commBorder();
      border-radius: 5px;
      cursor: pointer;
      &:hover {
        box-shadow: 0 0 3px #25f3e6;
        text-shadow: 0 0 3px #fff;
      }
      .staitem-icon {
        font-size: 45px;
        color: rgb(37, 243, 230);
        width: 33%;
        height: 100%;
        .flex-center();
        justify-content: center;
        position: relative;
        right: -10px;
      }
      .staitem-content {
        color: #25f3e6;
        width: 67%;
        height: 100%;
        .flex-center();
        flex-direction: column;
        justify-content: center;
      }
      .staitem-name {
        font-size: 16px;
        &.staitem0 {
          color: #f56c6c;
        }
        &.staitem1 {
          color: #67c23a;
        }
        &.staitem2 {
          color: #e6a23c;
        }
        &.staitem3 {
          color: #409eff;
        }
      }
      .staitem-num {
        font-size: 30px;
        color: #ffffff;
      }
    }
  }
}

.insideNet,
.outsideNet {
  width: 100%;
  height: calc(100% - 100px);
  background: #0c1c31 !important;
  position: relative;
  &.fullMap {
    height: 100% !important;
  }
}

.outsideNet.fullMap {
  height: 100% !important;
}

// 地图上图层控制
.layerButton {
  background: #2c3e50;
  padding: 5px 13px;
  font-size: 14px;
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 100;
  color: #ffffff;
  cursor: pointer;
}

.layerWrap {
  position: absolute;
  top: 10px;
  left: 0;
  width: 320px;
  height: 200px;
  z-index: 101;
  /deep/ .content_wrap {
    height: 100% !important;
  }

  .layerContainer {
    width: 100%;
    height: 100%;
    left: 0.1rem;
    background: #2c3e50;
    color: #ffffff;
    opacity: 0.9;
    padding: 10px 15px;
    box-sizing: border-box;
    .mapcItem {
      display: flex;
      padding: 9px 0;
      > span {
        width: 80px;
      }
      > div {
        width: calc(100% - 80px);
        .mr {
          margin-right: 8px;
        }
        .mt {
          margin-top: 9px;
        }
        /deep/ .el-switch__label {
          color: #25f3e6;
        }
        /deep/ .el-switch__label.is-active {
          color: #409eff;
        }
      }
      .carInput {
        background: transparent;
        color: rgb(37, 243, 230);
        .car_input_inner {
          /deep/ .el-input-group__prepend {
            background-color: transparent;
            border: none;
            border-bottom: 0.01rem solid #dcdfe6;
            padding: 0 15px;
            .el-button.el-button--default {
              padding: 15px;
              &:hover {
                color: #25f3e6;
              }
            }
          }
          /deep/ .el-input__inner {
            background: transparent;
            border: none;
            border-bottom: 1px solid #fff;
            border-radius: 0;
            color: #fff;
            padding: 0 30px 0 0;
          }
        }
      }
    }
  }
}

// 统计图样式
.chartItem {
  width: 100%;
  height: 50%;
  position: relative;
  .backChart {
    position: absolute;
    top: 2px;
    left: 0;
    background: #214682;
    border: solid 1px #2c58a6;
    color: #fda502;
    letter-spacing: 2px;
    padding: 6px 10px;
    cursor: pointer;
    z-index: 1;
    &:hover {
      color: #fff;
    }
    &.right {
      left: 48px;
    }
  }
  .chart_item {
    width: 100%;
    height: 100%;
  }
}

// 地图样式
.map {
  width: 100%;
  height: 100%;
}

//视频播放窗口
.vedioBox {
  width: 30%;
  height: 45%;
  position: absolute;
  top: 10px;
  right: 0.1rem;
  background: #142335;
  z-index: 102;
  .videoWrap {
    width: 100%;
    height: calc(100% + 40px);
  }
}
